package com.cskaoyan.controller.mall;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.CommonData;
import com.cskaoyan.bean.vo.mall.RegionListInfo;
import com.cskaoyan.service.mall.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Ajun de BBC
 * @Date 2022/7/20 15:32
 * @Version 1.5
 */

@RestController
@RequestMapping("admin/region")
public class RegionController {
    @Autowired
    RegionService regionService;

    @RequestMapping("list")
    public BaseRespVo regionList(){
        CommonData<RegionListInfo> regionInfo = regionService.regionListSelectAll();
        return BaseRespVo.ok(regionInfo,"成功",0);
    }
}
